home *** CD-ROM | disk | FTP | other *** search
- Path: castle.nando.net!news
- From: Caius Martius <caius@nando.net>
- Newsgroups: comp.lang.c++
- Subject: Re: UGENT! Help on iostreams!
- Date: Wed, 27 Mar 1996 17:03:37 -0800
- Organization: Carolantic Realty, Inc.
- Message-ID: <3159E569.5F@nando.net>
- References: <4j7kpm$lpv@linux.cpsc.ucalgary.ca>
- NNTP-Posting-Host: vyger1215.nando.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win95; I; 16bit)
-
- Erik Yuzwa wrote:
- >
- > I'm just doing some programming for an assignment in C++, and
- > I want to know if there's a FAQ (or if anyone knows anything) on using
- > the ios class.
- >
- > I'm trying to pass a file into functions, the only thing that compiles
- > for me so far, is:
- >
- > ifstream infile("INFILE.TXT");
- > .
- > .
- > .
- > (then when I pass it to another function..)
- > int Get_System_File(ifstream& infile)
- >
- > please email me if anyone knows anything about it (or where I can find some
- > help)....
- >
- > Thank you very much.
- > erik
- >
- > --
- > |...............YUZWA@CPSC.UCALGARY.CA.............................|
- > |"..The poor devil must've scrolled it in his deathroes using a
- > combination of his own blood, and even his own intestinal tract."
- > "Who would do that?"
- > "Someone who BADLY needed a pen."
- >
-
- You do need to specify ifstream as the actual argument instead try this:
- int Get_System_File(istream& infile);
-